# Maintainer: Siva Mahadevan <me@svmhdvn.name>
pkgname=dmarc-cat
pkgver=0.15.0
pkgrel=0
pkgdesc="Small utility to decode DMARC reports"
url="https://github.com/keltia/dmarc-cat"
arch="all"
license="BSD-2-Clause"
makedepends="go gpgme-dev"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
options="net"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build
}

check() {
	go test ./...
}

package() {
	install -Dm755 dmarc-cat "$pkgdir"/usr/bin
}

sha512sums="
103b08728b840b8ad916b5ad7d21448707e9ece3a1552fcd63f264fddcadd78c29941cfe991c3f4826de9fdd877d74213538af50041ae429df0634007a8e8acf  dmarc-cat-0.15.0.tar.gz
"
